package com.yangguang.huahui.api;

import com.yangguang.huahui.Config;
import com.yangguang.huahui.entity.Upload;

import java.io.File;
import java.util.List;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by Administrator on 2017/3/8.
 */

public interface ImageApi {
    /**
     * 多图上传
     * @param partList
     * @return
     */
    @Multipart
    @POST(Config.UPLOADIMG)
    Observable<ResponseBody> uploads(@Part List<MultipartBody.Part> partList);
}
